/**
 * Lockbox
 * a Password and Secret Information Manager
 * Password textbox entry
 *
 * Created by Nathan Black
 */

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <UIKit/UITextView.h>
    
#define LBPP_MARGIN_X   (20.0f)
#define LBPP_LEFT       (40.0f)
#define LBPP_WIDTH      (240.0f)

#define LBPP_TOP_AUTH        (45.0f)
#define LBPP_HEIGHT_AUTH     (115.0f)
#define LBPP_TOP_NEW        (25.0f)
#define LBPP_HEIGHT_NEW     (170.0f)

typedef enum _LockboxPwPromptState {
    LBPP_AUTH,
    LBPP_NEW,
    LBPP_CHANGE
} LockboxPwPromptState;

@interface LockboxPwPromptView : UIView
{
    UITextLabel* _descLabel;
    UITextLabel* _pwLabel;
    UITextField* _pwField;
    UITextLabel* _confirmLabel;
    UITextField* _confirmField;
    UITextField* _focusField;
    
    LockboxPwPromptState _state;
    id _delegate;
}

- (void)setDelegate:(id)del;
- (id)initWithFrame:(struct CGRect)frame promptState:(LockboxPwPromptState)state;
- (void)clearFields;

@end
